package com.ruoyi.ams.domain.vo;

import com.ruoyi.common.core.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
public class AssetUnlockLog {

    @ApiModelProperty("资产Id 不显示")
    Long assetId;

    @ApiModelProperty("资产位置")
    @Excel(name = "资产位置")
    String addressName;

    @ApiModelProperty("资产所属部门id 不显示")
    Long deptId;

    @ApiModelProperty("资产所属部门名")
    @Excel(name = "资产所属部门")
    String deptName;

    @ApiModelProperty("开锁用户Id 不显示")
    Long userId;

    @ApiModelProperty("开锁用户名")
    @Excel(name = "开锁用户名")
    String userName;

    @ApiModelProperty("开锁用户手机号")
    @Excel(name = "开锁用户手机号")
    String userPhoneNumber;

    @ApiModelProperty("开锁方式 1扫码  2")
    @Excel(name= "开锁方式",readConverterExp = "1=扫码开锁,2=远程开锁,0=未知方式")
    Integer unlockWay;

    @ApiModelProperty("命令下发时间戳")
    @Excel(name = "开锁指令发送时间",readConverterExp = "0= ---",dateFormat = "yyyy-MM-dd HH:mm:ss")
    Long sendTime;

    @ApiModelProperty("开锁执行结果 -1 执行中 0 失败 1 成功")
    @Excel(name = "开锁结果",readConverterExp = "-1=执行中,0=失败,1=成功")
    Integer execStatus;

    @ApiModelProperty("命令执行成功时间")
    @Excel(name = "命令成功时间",readConverterExp = "0= ---",dateFormat = "yyyy-MM-dd HH:mm:ss")
    Long successTime;

    @ApiModelProperty("机柜锁是否重新关闭 1关闭 0未关闭")
    @Excel(name = "机柜锁打开后是否关闭",readConverterExp = "0=未关闭,1=关闭,2=未打开")
    Integer  rockLockStatus;

    @ApiModelProperty("重新关闭时间")
    @Excel(name = "机柜锁重新关闭时间",readConverterExp = "0= ---",dateFormat = "yyyy-MM-dd HH:mm:ss")
    Long reLockTime;

    @ApiModelProperty(value =  "命令发送备注")
    @Excel(name = "备注")
    private String sendRemark;

}
